package org.getOffer.offer58;

/**
 * @Author: wjy
 * @Date: 2021/9/23 13:13
 */
public class Solution {

    public static void main(String[] args) {
        String s = "abcdefg";
        int k = 2;
        reverseLeftWords(s, k);
    }

    public static String reverseLeftWords(String s, int n) {
        String left = s.substring(n, s.length());

        String right = s.substring(0, n);

        StringBuilder stringBuilder = new StringBuilder(left);

        stringBuilder.append(right);

        return stringBuilder.toString();
    }

}
